import request from '@/utils/request'

// 查询用户参与活动卡券列表
export function listConsumerCoupons(query) {
  return request({
    url: '/activitys/consumerCoupons/list',
    method: 'get',
    params: query
  })
}

// 查询用户参与活动卡券详细
export function getConsumerCoupons(id) {
  return request({
    url: '/activitys/consumerCoupons/' + id,
    method: 'get'
  })
}

// 新增用户参与活动卡券
export function addConsumerCoupons(data) {
  return request({
    url: '/activitys/consumerCoupons',
    method: 'post',
    data: data
  })
}

// 修改用户参与活动卡券
export function updateConsumerCoupons(data) {
  return request({
    url: '/activitys/consumerCoupons',
    method: 'put',
    data: data
  })
}

// 删除用户参与活动卡券
export function delConsumerCoupons(id) {
  return request({
    url: '/activitys/consumerCoupons/' + id,
    method: 'delete'
  })
}
